import time

from tqdm import tqdm
# for i in tqdm(range(10000), unit='bytes'):
#     time.sleep(1)

pbar = tqdm(total=100, unit='bytes')
for i in range(10):
    time.sleep(0.1)
    pbar.update(10)
pbar.close()